-- GENERATED SPELL FOR [Moonstalker] --


function spell0_2069(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(16828,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2069', 627, 1)
end

function spell1_2069(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(16829,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2069', 614, 1)
end

function spell2_2069(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(1753,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2069', 0, 1)
end

function spell3_2069(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14916,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2069', 0, 1)
end

function spell4_2069(pUnit, Event) --@Rake,n/a--
pUnit:FullCastSpellOnTarget(59881,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2069', 9000, 1)
end

function Sorts_2069(pUnit, Event)
local choix_sorts_2069 = math.random(0, 4)
if choix_sorts_2069 == 0 then
pUnit:RegisterEvent('spell0_2069', 1, 1)
end
if choix_sorts_2069 == 1 then
pUnit:RegisterEvent('spell1_2069', 1, 1)
end
if choix_sorts_2069 == 2 then
pUnit:RegisterEvent('spell2_2069', 1, 1)
end
if choix_sorts_2069 == 3 then
pUnit:RegisterEvent('spell3_2069', 1, 1)
end
if choix_sorts_2069 == 4 then
pUnit:RegisterEvent('spell4_2069', 1, 1)
end
end

function mob2069_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2069', math.random(1500, 3000), 1)
end

function mob2069_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2069_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2069_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2069, 1, 'mob2069_Action')
RegisterUnitEvent(2069, 2, 'mob2069_Leave')
RegisterUnitEvent(2069, 3, 'mob2069_Kill')
RegisterUnitEvent(2069, 4, 'mob2069_Die')
